package com.zmzncs.lmtc.module.promotion.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zmzncs.lmtc.module.promotion.pojo.ticket.Ticket;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zmzncs.lmtc.module.promotion.pojo.ticket.TicketAddForm;
import com.zmzncs.lmtc.module.promotion.pojo.ticket.TicketDTO;
import com.zmzncs.lmtc.module.promotion.pojo.ticket.TicketSelectForm;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 任建波
 * @since 2020-10-13
 */
public interface TicketService extends IService<Ticket> {

    /**新增优惠券信息*/
    void addTicket (TicketAddForm form);

    /**条件分页查询优惠券信息  */
    IPage<TicketDTO> getTicketByManage(TicketSelectForm form);

    /**更新优惠券状态 */
    void updateTicketStatus(Long ticketId,Integer status);

    /**查询所有优惠券信息 */
    List<TicketDTO> getAllTicket();
}
